         <!-- START OF MAINCOL -->
          <div class="MainCol AM_BookPage">

              <h1 class="left">友情链接管理</h1>
              <div class="right"><a href="<?php echo CHtml::normalizeUrl(array('/admin/seo/addlink')); ?>" class="Blue_btn" title="添加新链接"><span><?= CHtml::image(Yii::app()->baseUrl.'/images/add_icon.gif', '', array('class' => 'icon')); ?> 添加新链接</span></a>
              </div>
              <br class="clear" />
              
              <span class="NormalFont SmallFont">
                  <?= CHtml::image(Yii::app()->baseUrl.'/images/home_icon.gif', '主页'); ?> > SEO 选项 > 友情链接管理
               </span><br /><br />
              
              <div class="Titlebox box"><!-- DON'T DELETE --></div>

              <?php if(Yii::app()->user->hasFlash('message')) : ?>
              <div class="SuccessfulBox Smallbox">
                <span class="Successful"> <?php echo Yii::app()->user->getFlash('message'); ?></span>
              </div>
              <?php endif; ?>
              
              <ul class="Lists Smallbox">
              <?php foreach($links as $k => $link) { ?>
              	  <li <?php if($k%2 == 1) { ?>class="ThinGrey_bg"<?php } ?>>
                      
                      <span class="ContentBox">
                          <p class="Smallbox">
                      	  <?= CHtml::link($link->desName, array('admin/seo/editlink', 'id' => $link->linkId), array('class' => 'NameLink')); ?><br />
                      	    链接指向：<?php echo CHtml::link($link->linkTo, $link->linkTo, array('target' => '_blank')); ?><br />
                      	    站点图片标识：<?php echo CHtml::image($link->imageUrl)?><br />
                          	排序: <?= $link->sortOrder; ?>
                          </p>
                          
                      </span>
                      <br class="clear" />
                      
                      <span class="Rated"><?php echo CHtml::link('删除', array('/admin/seo/deletelink', 'id' => $link->linkId), array('confirm' => '确定要删除这个友情链接吗？', 'class' => 'Delete')); ?></span>
                </li>
                <?php } ?>
                
              </ul>
        </div>
          <!-- END OF MAINCOL -->